.plants-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 80px auto 0;
}

.search-bar {
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
    max-width: 600px;
}

.search-bar input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.search-bar button {
    padding: 0.8rem 2rem;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-bar button:hover {
    background: #45a049;
}

.plant-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

.plant-card {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.plant-card:hover {
    transform: translateY(-5px);
}

.plant-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.plant-card h3, .plant-card p {
    padding: 1rem;
    margin: 0;
}

.plant-card button {
    width: 100%;
    padding: 1rem;
    border: none;
    background: #4CAF50;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

.plant-card button:hover {
    background: #45a049;
}

/* 移动端适配 */
@media (max-width: 1024px) {
    .plant-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .plant-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .plant-list {
        grid-template-columns: 1fr;
    }
} 